package com.zbkj.crmeb.store.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 功能描述: 拼团对象
 * @Author: wangzh
 * @Date: 2022/11/28 15:04
 */
@Data
@Accessors(chain = true)
@TableName("eb_channel_group_booking")
@ApiModel("ChannelGroupBooking对象")
public class ChannelGroupBooking implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("活动id，一个活动对应一个统一的id,用于识别活动唯一性")
    private String groupId;

    @ApiModelProperty("拼团活动名称")
    private String activityName;

    @ApiModelProperty("拼团时间类型")
    private Integer activityTimeType;

    @ApiModelProperty("拼团开始时间")
    @TableField(value = "activity_start_time", updateStrategy = FieldStrategy.IGNORED)
    private Date activityStartTime;

    @ApiModelProperty("拼团结束时间")
    @TableField(value = "activity_end_time", updateStrategy = FieldStrategy.IGNORED)
    private Date activityEndTime;

    @ApiModelProperty("参团人数")
    private Integer joinPersonNumber;

    @ApiModelProperty("是否限购 0:不限购 1:限购")
    private Integer purchaseLimitType;

    @ApiModelProperty("限购数量")
    @TableField(value = "purchase_limit_number", updateStrategy = FieldStrategy.IGNORED)
    private Integer purchaseLimitNumber;

    @ApiModelProperty("商户id")
    private Integer merId;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("团长id")
    private Integer leaderId;

    @ApiModelProperty(value = "团长名称")
    private String leaderName;

    @ApiModelProperty(value = "返佣比例")
    private BigDecimal rebateRate;

    @ApiModelProperty(value = "是否佣金计算完成(0:否 1:是)")
    private Integer rebateFinish;

    @ApiModelProperty(value = "是否已全部归还库存(0:否 1:是)")
    private Integer returnStock;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否使用兜底佣金：1是 0否")
    private Integer useBaseRebateRate;

}
